<?php
App::uses('AppModel', 'Model');
/**
 * Trabajo Model
 *
 * @property Usuario $Usuario
 * @property Cliente $Cliente
 * @property Estado $Estado
 * @property Hojasruta $Hojasruta
 * @property Ordenespedido $Ordenespedido
 */
class Trabajo extends AppModel {

	//The Associations below have been created with all possible keys, those that are not needed can be removed

/**
 * belongsTo associations
 *
 * @var array
 */
	public $belongsTo = array(
		'Usuario' => array(
			'className' => 'Usuario',
			'foreignKey' => 'usuario_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
				'Estadostrabajo' => array(
			'className' => 'Estadostrabajo',
			'foreignKey' => 'estadotrabajo_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Cliente' => array(
			'className' =>'cliente',
			'foreignKey' =>'cliente_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

/**
 * hasMany associations
 *
 * @var array
 */
	public $hasMany = array(
		'Hojasruta' => array(
			'className' => 'Hojasruta',
			'foreignKey' => 'trabajo_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Ordenespedido' => array(
			'className' => 'Ordenespedido',
			'foreignKey' => 'trabajo_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);

}
